<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        /* 行内：不换行；设置宽高不生效；尺寸和内容的大小相同 */
        span {
            width: 300px;
            height: 300px;
            background-color: pink;   
            
            /* 转换为行内块：尺寸生效 */
            /* display: inline-block;*/

            /* 转换为块： 换行，每行一直有个元素，且尺寸生效*/
            display: block;
        }
    </style>

</head>

<body>

    <span>span</span>
    <span>span</span>
    
</body>
</html>